package com.banmao.wxnotebookserver.index.controller;

import com.banmao.wxnotebookserver.entity.R;
import com.banmao.wxnotebookserver.util.RFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/index")
public class IndexController {


    @RequestMapping("/test")
    public R test(String v1, String v2) {

        System.out.println(v1);
        System.out.println(v2);
        HashMap<String, Object> result = new HashMap<>();
        result.put("v1", v1);
        result.put("v2", v2);
        result.put("data", "调用成功");
        return RFactory.success(result);

    }

}
